﻿using System.Linq;
using System;

namespace iss.sg4210.se18.team6s.jass.DAL.DataAccess.Interfaces
{
    public interface IEvents
    {
        IQueryable<Event> FindAllEvents();
        IQueryable<Event> FindAllEventsByUser(Guid userId);
        Event GetEvent(int eventId);
        void AddEvent(Event eventObject);
        void UpdateEvent(Event eventObject);
        void DeleteEvent(int eventId);
    }

    public interface IArticles
    {
        IQueryable<Article> FindAllArticles();
        IQueryable<Article> FindAllArticlesByUser(Guid userId);
        Article GetArticle(int articleId);
        void AddArticle(Article article);
        void UpdateArticle(Article article);
        void DeleteArticle(int articleId);
    }
}
